﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Expect.Core.Test
{
    using Expect.Core.BaseClasses;

    [TestClass]
    public class FixtureClassAvecParametresConstructeur
    {
        [TestMethod]
        public void ColumnFixtureWithParams_execute_inline()
        {
            SpecificationDefinition test = new SpecificationDefinition();

            test.AddFixture()
                .WithRow("ColumnFixtureImplWithParams","12")
                .WithRow("col1", "col2", "col3", "sum()")
                .WithRow("1", "2", "3", "6")
                .WithRow("4", "5", "6", "15")
                .WithRow("7", "8", "9", "24");

            DefaultSpecificationExecution runner = new DefaultSpecificationExecution();
            runner.Run(this, test);
            if (!test.Status.Success.HasValue)
                Assert.Inconclusive(test.GetMessageForInconclusiveResult());
            if (!test.IsSuccessful)
                Assert.Fail(test.GetMessageForFailedResult());
            //MakeSure.That(test.Status.Success, Is.True);
        }
    }
}
